package cn.class2.demo8

/**
  * Created by lzd on 2018/11/22.
  */
class Demo1 {
  implicit val c: Int= 1000
}

object Demo1 {
  def m2(a: Int)(implicit b: Int = 100) = {
    println(a * b)
  }

  def main(args: Array[String]): Unit = {
    m2(1)
//    val dm = new Demo1
//    import dm.c
    import Demo2.c
    m2(1)
  }
}

object Demo2{
  implicit val c: Int= 1000
}
